
"""
    消息队列简介
"""
import multiprocessing

queue1 = multiprocessing.Queue(5)

queue1.put(1)
queue1.put([1, 2, 3])
queue1.put((1, 2, 3))
queue1.put({"a": 1})
queue1.put("hello")
# queue1.put("hello")
#
# queue1.put_nowait((1, 2))

queue1.get()

queue1.get_nowait()
